package com.party.core.model.copartner;

import com.party.core.model.BaseModel;

import java.util.Date;

/**
 * @Author: Administrator.
 * @Description: 佣金明细
 * @Date:Created in 2017/10/24 0024 下午 15:33.
 */
public class BrokerageItem extends BaseModel {
    public static Integer TYPE_CROWDFUND = 0; // 众筹
    public static Integer TYPE_COURSE = 1; // 课程

    public static Integer STATUS_CAN_BROKERAGE = 1; // 可结算
    public static Integer STATUS_NOT_BROKERAGE = 2; // 不可结算

    private String targetId; // 目标id（众筹id/课程id）
    private Float brokerage; // 佣金
    private Integer checkStatus; // 状态
    private String partnerId; // 分佣人
    private String parentId; // 父级分佣人
    private String activityId; // 活动id
    private Integer type;// 0：众筹 1：课程
    private Date withdrawDate; // 提现时间

    private String title; // 项目名称


    public BrokerageItem() {
    }

    public BrokerageItem(String targetId, Integer checkStatus) {
        this.targetId = targetId;
        this.checkStatus = checkStatus;
    }

    public BrokerageItem(String partnerId) {
        this.partnerId = partnerId;
    }

    public String getTargetId() {
        return targetId;
    }

    public void setTargetId(String targetId) {
        this.targetId = targetId;
    }

    public Float getBrokerage() {
        return brokerage;
    }

    public void setBrokerage(Float brokerage) {
        this.brokerage = brokerage;
    }

    public Integer getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(Integer checkStatus) {
        this.checkStatus = checkStatus;
    }

    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getActivityId() {
        return activityId;
    }

    public void setActivityId(String activityId) {
        this.activityId = activityId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getWithdrawDate() {
        return withdrawDate;
    }

    public void setWithdrawDate(Date withdrawDate) {
        this.withdrawDate = withdrawDate;
    }
}
